<?php
if (!defined('APP_ID')) { die('No direct script access allowed'); }

/**
 * Main controller
 */
class Controller_Console extends Controller {
	public function mainAction() {
        Output::body('Hello console' . PHP_EOL);
		Output::body(date('c'), time());
	}

	public function checkAction() {
		print_r(stat(DATA_DIR));
		if (is_writable(DATA_DIR)) {
			Output::body('Success: Data directory writable' . PHP_EOL);
		} else {
			Output::body('Error: Data directory not writable' . PHP_EOL);
		}
	}
}
